package com.evil.enterprise.controller;

import com.evil.account.api.RemoteEnterpriseService;
import com.evil.common.account.dto.enterprise.SystemInfoRespDTO;
import com.evil.common.core.entity.R;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统接口
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping()
public class SystemController {

    private final RemoteEnterpriseService remoteEnterpriseService;

    /**
     * 获取系统信息
     *
     * @return R
     */
    @PostMapping("/login-system/info")
    private R<SystemInfoRespDTO> loginSystemInfo() {
        return R.success(remoteEnterpriseService.loginSystemInfo());
    }
}
